import time

def copy(filename, x):
    source = open(filename)
    contents = source.read()
    source.close()

    dest = open('temp/%d' % x, 'w')
    dest.write(contents)
    dest.close()

# The file to be copied
filename = ''

start = time.time()

for x in xrange(0,1000):
    copy(filename, x)

print time.time() - start
